import React from 'react';
import { Popup } from 'devextreme-react/popup';
import { intl } from '@/utils';

/**
 * 选择阶段 组件 继承 Dev 的 Popup
 * @param props 
 * @returns
 */

export const SelPhase: React.FC<any> = (props: any) => {

  const toolbarItems =
    [
      {
        widget: "dxButton",
        toolbar: "bottom",
        location: "after",
        options: {
          text: intl('pub.ok', '确定'),
          type: 'default',
          onClick: () => {
            // setDiaShow(false);
            // props.onOK(valueRef.current);
          }
        }
      },
      {
        widget: "dxButton",
        toolbar: "bottom",
        location: "after",
        options: {
          text: intl('pub.cancel', '取消'),
          onClick: () => {

          }
        }
      }
    ]

  return <>
    <Popup
      {...props}
      // width={props.width || 380}
      // height={props.height || 180}
      // contentRender={contentRender}
      toolbarItems={toolbarItems}
    />
  </>;
};

export default SelPhase;